﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using ModelLayer;

namespace WCFServer
{
    [ServiceContract]
    public interface IDBCtrl
    {
        [OperationContract]
        Node[] getNodes();

        [OperationContract]
        Node getNodeById(int id);

        [OperationContract]
        int addNode(string title, Coordinates coord,
            ModelLayer.Type type, DateTime date);

        [OperationContract]
        bool updateNode(int id, string title, Coordinates coord,
            ModelLayer.Type type, DateTime date);

        [OperationContract]
        bool removeNode(int id);
    }
}
